/* -*- C++ -*- vim: set syntax=cpp:
 * PURPOSE: File containing definition of token-identifier and
 *          a function that maps token identifiers to a string
 *          name.
 *
 * NOTE: This file has been created automatically by Quex.
 *       Visit quex.org for further info.
 *
 * DATE: Mon Jun 18 22:47:53 2012
 *
 * (C) 2005-2010 Frank-Rene Schaefer
 * ABSOLUTELY NO WARRANTY                                           */
#ifndef __QUEX_INCLUDE_GUARD__AUTO_TOKEN_IDS___QUEX____TOKEN__
#define __QUEX_INCLUDE_GUARD__AUTO_TOKEN_IDS___QUEX____TOKEN__

#ifndef __QUEX_OPTION_PLAIN_C
#   include<cstdio> 
#else
#   include<stdio.h> 
#endif

/* The token class definition file can only be included after the two token identifiers have
 * been defined. Otherwise, it would rely on default values. */
#include "depythonize_c_lex-token"

#define QUEX_TKN_BACKSLASH                       ((QUEX_TYPE_TOKEN_ID)10000)
#define QUEX_TKN_BLOCK_CLOSE                     ((QUEX_TYPE_TOKEN_ID)10001)
#define QUEX_TKN_BLOCK_OPEN                      ((QUEX_TYPE_TOKEN_ID)10002)
#define QUEX_TKN_CODE                            ((QUEX_TYPE_TOKEN_ID)10003)
#define QUEX_TKN_COMMENT                         ((QUEX_TYPE_TOKEN_ID)10004)
#define QUEX_TKN_END_PARENTHESIS_BLOCK           ((QUEX_TYPE_TOKEN_ID)10005)
#define QUEX_TKN_ERROR_MISALIGNED_INDENTATION    ((QUEX_TYPE_TOKEN_ID)10006)
#define QUEX_TKN_EVENT_MODE_CHANGE               ((QUEX_TYPE_TOKEN_ID)10007)
#define QUEX_TKN_NEWLINE                         ((QUEX_TYPE_TOKEN_ID)10008)
#define QUEX_TKN_NUMBER                          ((QUEX_TYPE_TOKEN_ID)10009)
#define QUEX_TKN_PREPROCESSOR_MULTILINE_CONTINUE ((QUEX_TYPE_TOKEN_ID)10010)
#define QUEX_TKN_PREPROCESSOR_MULTILINE_END      ((QUEX_TYPE_TOKEN_ID)10011)
#define QUEX_TKN_PREPROCESSOR_MULTILINE_START    ((QUEX_TYPE_TOKEN_ID)10012)
#define QUEX_TKN_PREPROCESSOR_SINGLE_LINE        ((QUEX_TYPE_TOKEN_ID)10013)
#define QUEX_TKN_SEMICOLON                       ((QUEX_TYPE_TOKEN_ID)10014)
#define QUEX_TKN_START_PARENTHESIS_BLOCK         ((QUEX_TYPE_TOKEN_ID)10015)
#define QUEX_TKN_STRING                          ((QUEX_TYPE_TOKEN_ID)10016)
#define QUEX_TKN_TERMINATION                     ((QUEX_TYPE_TOKEN_ID)0)
#define QUEX_TKN_UNINITIALIZED                   ((QUEX_TYPE_TOKEN_ID)1)
#define QUEX_TKN_WHITESPACE                      ((QUEX_TYPE_TOKEN_ID)10017)
#define QUEX_TKN_WORD                            ((QUEX_TYPE_TOKEN_ID)10018)



QUEX_NAMESPACE_TOKEN_OPEN

#ifndef __QUEX_OPTION_PLAIN_C
    inline
#else
    static
#endif
const char*
QUEX_NAME_TOKEN(_map_id_to_name)(const QUEX_TYPE_TOKEN_ID TokenID)
{
   static char  error_string[64];
   static const char  uninitialized_string[] = "<UNINITIALIZED>";
   static const char  termination_string[]   = "<TERMINATION>";
   static const char  token_id_str_COMMENT[]                         = "COMMENT";
   static const char  token_id_str_CODE[]                            = "CODE";
   static const char  token_id_str_WORD[]                            = "WORD";
   static const char  token_id_str_STRING[]                          = "STRING";
   static const char  token_id_str_SEMICOLON[]                       = "SEMICOLON";
   static const char  token_id_str_PREPROCESSOR_MULTILINE_CONTINUE[] = "PREPROCESSOR_MULTILINE_CONTINUE";
   static const char  token_id_str_BLOCK_CLOSE[]                     = "BLOCK_CLOSE";
   static const char  token_id_str_PREPROCESSOR_MULTILINE_END[]      = "PREPROCESSOR_MULTILINE_END";
   static const char  token_id_str_NEWLINE[]                         = "NEWLINE";
   static const char  token_id_str_BLOCK_OPEN[]                      = "BLOCK_OPEN";
   static const char  token_id_str_NUMBER[]                          = "NUMBER";
   static const char  token_id_str_BACKSLASH[]                       = "BACKSLASH";
   static const char  token_id_str_WHITESPACE[]                      = "WHITESPACE";
   static const char  token_id_str_START_PARENTHESIS_BLOCK[]         = "START_PARENTHESIS_BLOCK";
   static const char  token_id_str_PREPROCESSOR_MULTILINE_START[]    = "PREPROCESSOR_MULTILINE_START";
   static const char  token_id_str_END_PARENTHESIS_BLOCK[]           = "END_PARENTHESIS_BLOCK";
   static const char  token_id_str_ERROR_MISALIGNED_INDENTATION[]    = "ERROR_MISALIGNED_INDENTATION";
   static const char  token_id_str_EVENT_MODE_CHANGE[]               = "EVENT_MODE_CHANGE";
   static const char  token_id_str_PREPROCESSOR_SINGLE_LINE[]        = "PREPROCESSOR_SINGLE_LINE";
       

   /* NOTE: This implementation works only for token id types that are 
    *       some type of integer or enum. In case an alien type is to
    *       used, this function needs to be redefined.                  */
   switch( TokenID ) {
   default: {
       __QUEX_STD_sprintf(error_string, "<UNKNOWN TOKEN-ID: %i>", (int)TokenID);
       return error_string;
   }
   case __QUEX_SETTING_TOKEN_ID_TERMINATION:   return termination_string;
   case __QUEX_SETTING_TOKEN_ID_UNINITIALIZED: return uninitialized_string;
   case QUEX_TKN_COMMENT:                         return token_id_str_COMMENT;
   case QUEX_TKN_CODE:                            return token_id_str_CODE;
   case QUEX_TKN_WORD:                            return token_id_str_WORD;
   case QUEX_TKN_STRING:                          return token_id_str_STRING;
   case QUEX_TKN_SEMICOLON:                       return token_id_str_SEMICOLON;
   case QUEX_TKN_PREPROCESSOR_MULTILINE_CONTINUE: return token_id_str_PREPROCESSOR_MULTILINE_CONTINUE;
   case QUEX_TKN_BLOCK_CLOSE:                     return token_id_str_BLOCK_CLOSE;
   case QUEX_TKN_PREPROCESSOR_MULTILINE_END:      return token_id_str_PREPROCESSOR_MULTILINE_END;
   case QUEX_TKN_NEWLINE:                         return token_id_str_NEWLINE;
   case QUEX_TKN_BLOCK_OPEN:                      return token_id_str_BLOCK_OPEN;
   case QUEX_TKN_NUMBER:                          return token_id_str_NUMBER;
   case QUEX_TKN_BACKSLASH:                       return token_id_str_BACKSLASH;
   case QUEX_TKN_WHITESPACE:                      return token_id_str_WHITESPACE;
   case QUEX_TKN_START_PARENTHESIS_BLOCK:         return token_id_str_START_PARENTHESIS_BLOCK;
   case QUEX_TKN_PREPROCESSOR_MULTILINE_START:    return token_id_str_PREPROCESSOR_MULTILINE_START;
   case QUEX_TKN_END_PARENTHESIS_BLOCK:           return token_id_str_END_PARENTHESIS_BLOCK;
   case QUEX_TKN_ERROR_MISALIGNED_INDENTATION:    return token_id_str_ERROR_MISALIGNED_INDENTATION;
   case QUEX_TKN_EVENT_MODE_CHANGE:               return token_id_str_EVENT_MODE_CHANGE;
   case QUEX_TKN_PREPROCESSOR_SINGLE_LINE:        return token_id_str_PREPROCESSOR_SINGLE_LINE;

   }
}

QUEX_NAMESPACE_TOKEN_CLOSE


#endif /* __QUEX_INCLUDE_GUARD__AUTO_TOKEN_IDS___QUEX____TOKEN__ */
